package com.bristua.barcode.supplier.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.supplier.biz.AddSupplierBiz;
import com.bristua.barcode.supplier.biz.AddSupplierQrcodeBiz;
import com.bristua.barcode.supplier.model.condition.AddSupplierParams;
import com.bristua.barcode.supplier.model.condition.AddSupplierQrcodeParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/8/5 0005.
 */
@RestController
public class AddSupplierQrcodeController {

    @Autowired
    private AddSupplierQrcodeBiz addSupplierQrcodeBiz;

    @PostMapping("/supplier/add/qrcode")
    public Result addSupplier(@RequestBody AddSupplierQrcodeParams addSupplierQrcodeParams){

        addSupplierQrcodeBiz.addSupplierQrcode(addSupplierQrcodeParams);

        return HandleResultUtil.addSuccessResult();
    }

}
